const express = require('express');
const app = express();
app.listen(9000, '127.0.0.1');
app.use(express.static('./file'))
app.get('/user', (req, res) => {
    res.json({
        status: true,
        data: [
            {
                name: 'jean',
                age: 16,
                id: 1
            },
            {
                name: 'mary',
                age: 16,
                id: 2
            }
        ],
        msg: 'success!'
    })
})